<?php
class BackendJobeetJobForm extends JobeetJobForm
{
	public function configure()
	{
		parent::configure();

		 $this->widgetSchema['logo'] = new sfWidgetFormInputFileEditable(array(
			'label'		 => 'Company logo',
			'file_src'	=> '/uploads/jobs/'.$this->getObject()->getLogo(),
			'is_image'	=> true,
			'edit_mode' => !$this->isNew(),
			'template'	=> '<div>%file%<br />%input%<br />%delete% %delete_label%</div>',
		));
	}
 
	protected function removeFields()
	{
		unset(
			$this['created_at'], $this['updated_at'],
			$this['token']
		);
	}
}